package webServices;

public class SolFabrServerProxy implements webServices.SolFabrServer {
  private String _endpoint = null;
  private webServices.SolFabrServer solFabrServer = null;
  
  public SolFabrServerProxy() {
    _initSolFabrServerProxy();
  }
  
  public SolFabrServerProxy(String endpoint) {
    _endpoint = endpoint;
    _initSolFabrServerProxy();
  }
  
  private void _initSolFabrServerProxy() {
    try {
      solFabrServer = (new webServices.SolFabrServerServiceLocator()).getSolFabrServerPort();
      if (solFabrServer != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)solFabrServer)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)solFabrServer)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (solFabrServer != null)
      ((javax.xml.rpc.Stub)solFabrServer)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public webServices.SolFabrServer getSolFabrServer() {
    if (solFabrServer == null)
      _initSolFabrServerProxy();
    return solFabrServer;
  }
  
  public java.lang.String procesarSolFabr(java.lang.String arg0) throws java.rmi.RemoteException{
    if (solFabrServer == null)
      _initSolFabrServerProxy();
    return solFabrServer.procesarSolFabr(arg0);
  }
  
  
}